$(document).ready(function () {
	setTimeout(function () {
		$('#box').addClass('ani');
	}, 1);
	setTimeout(function () {
		$('input[name=pwd]').attr('type', 'password');
	}, 100);
	$('input').on('keyup', function (e) {
		if(e.keyCode == 13) {
			$mask = loading();
			$.ajax({type:'post',url:SITE_PATH+'admin/user1/login',data:$('input').serialize(),success:function (j) {
				if(j.result > 0) {
					window.location.href = SITE_PATH+'admin/panel';
				} else
					alert(j.msg);
				$mask.remove();
			}});
		}
	});
});

